package cn.ac.iie.kgmanager.service;

import cn.ac.iie.kgmanager.domain.Relation;

import java.util.List;
import java.util.Set;

/**
 * @ClassName RelationService
 * @Author tjh
 * @Date 19/6/12 上午10:49
 * @Version 1.0
 **/
public interface RelationService {

    String saveRelation(Relation relation);

    Set<String> batchSaveRelations(List<Relation> relationList);

    List<Relation> getRelationByCondition(Relation relation, Integer pageSize, Integer pageNum, Integer depth);

    int countRelationByCondition(Relation relation, Integer depth);

    Relation getRelationById(String relationId);

    boolean updateRelation(Relation relation);

    int batchUpdateRelations(List<Relation> relationList);

    int batchDeleteRelations(String[] ids);

    String deleteRelationById(String id);

    List<Relation> getRelationByNodes(String[] ids);

}
